package com.forum.framework.common.exception;

/**
 * 错误码对象
 * 全局错误码，占用 [0, 999], {@link}
 * 业务异常错误码，占用 [1 000 000 000, +∞), {}
 *
 * @author zihan.ouyang
 */
public class ErrorCode {
    private final Integer code;

    private final String msg;

    public ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
